#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2019/11/15 下午6:58
# @Author  : yinxin
# @File    : Mqconfig
# @Software: PyCharm

import inspect

from happy_python import HappyConfigBase

from log import hlog


class MqConfig(HappyConfigBase):
    """
    配置文件模板
    """

    def __init__(self):
        func_name = "MqConfig." + inspect.stack()[0][3]
        hlog.enter_func(func_name)

        super().__init__()

        self.section = 'mq_config'
        self.host = "127.0.0.1"
        self.port = 9092
        self.group = ""
        self.topic = ""

        hlog.var("MqConfig.section", self.section)

        hlog.exit_func(func_name)
